package cn.kgc.springcloud.controller;

import cn.kgc.springcloud.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2025/1/16
 * @description
 */
@RestController
@RequestMapping("order")
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("create")
    public  Boolean  createOrder(String userId, String commodityCode, Integer count,Integer money){
        return orderService.createOrder(userId,commodityCode,count,money);
    }

}
